package com.xiaozhen.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @create 2023-04-24 16:18
 */
@Data
@TableName(value = "t_login_ticket")
public class LoginTicket {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private String ticket; // 登录凭证

    private int status; // 登录状态 0 表示正常 1表示过期

    private Date expired; // 过期时间

}
